package base.common;

import org.junit.Test;

public class ThreadTest {

	@Test
	public void test() {
		for(int i=0;i<=10;i++){
			MyThread1 mt1=new MyThread1(i);
			Thread t1=new Thread(mt1);
			t1.start();
		}
		
	}

}

class MyThread1 extends Thread {
	private int num;
	
	public MyThread1(int num) {
		this.num = num;
	}

	@Override
	public void run() {
		for(int i=0;i<=10;i++){
			System.out.printf("%s:%d*%d=%d\n",Thread.currentThread().getName(),num,i,i*num);
		}
		
	}
}
